#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>

void *thread_run(void *arg)
{
		printf("I am thread\n");
	//	sleep(3);
		return NULL;
}

int main()
{
	pthread_t tid;
	void *ret;
	pthread_create(&tid,NULL,thread_run,NULL);
	pthread_join(tid,&ret);
	
	printf("main thread run new thread ret:%d\n",(int)ret);
	free(ret);
	return 0;
}
